<?php
/**
 * 应用程序路由配置
 *
 * Created by PhpStorm.
 * User: libin
 * Date: 2017/9/8
 * Time: 下午2:18
 */
return [
   'index'=>[
       'method'=>'get',
       'action'=>'UserController@index'
   ],
    'login' => [
        'method' => 'get',
        'action' => 'UserController@login'
    ],
    'do_login' => [
        'method' => 'post',
        'action' => 'UserController@do_login'
    ],
    'register'=>[
        'method'=>'get',
        'action'=>'UserController@register'
    ],
    'do_register'=>[
        'method'=>'post',
        'action'=>'UserController@do_register'
    ],
    'useredite'=>[
        'method'=>'get',
        'action'=>'UserController@userEdite'
    ],
    'userindex'=>[
        'method'=>'post',
        'action'=>'UserController@userIndex'
    ],
    'bloglist'=>[
        'method'=>'get',
        'action'=>'BlogController@bloglist'
    ],
    'readblog'=>[
        'method'=>'get',
        'action'=>'BlogController@readblog'
    ],
    'addblog'=>[
        'method'=>'get',
        'action'=>'BlogController@addblog'
   ],
   'add_blog'=>[
       'method'=>'post',
       'action'=>'BlogController@add_blog'
   ],
    'newblog'=>[
      'method'=>'get',
      'action'=>'BlogController@new_blog'
    ],
    'blog_comment'=>[
        'method'=>'post',
        'action'=>'BlogController@blog_comment'
    ],
    'addfriends'=>[
        'method'=>'get',
        'action'=>'FriendController@addFriends'
    ],
    'add_friend'=>[
        'method'=>'get',
        'action'=>'FriendController@add_friend'
    ],
    'deletefriend'=>[
       'method'=>'get',
       'action'=>'FriendController@delete_friend'
    ],
    'gallery'=>[
      'method'=>'get',
      'action'=>'GalleryController@gallery'
   ],
    'addImage'=>[
        'method'=>'get',
        'action'=>'GalleryController@addImage'
    ],
    'add_gallery'=>[
        'method'=>'post',
        'action'=>'GalleryController@add_gallery'
    ],
    'delete_gallery'=>[
        'method'=>'get',
        'action'=>'GalleryController@delete_gallery'
    ],
    'mytrends'=>[
        'method'=>'get',
        'action'=>'TrendsController@my_trends'
    ],
    'newtrends'=>[
        'method'=>'get',
        'action'=>'TrendsController@new_trends'
    ],
    'add_trends'=>[
        'method'=>'post',
        'action'=>'TrendsController@add_trends'
    ],
    'send_comment'=>[
        'method'=>'post',
        'action'=>'CommentController@send_comment'
    ],
    'email'=>[
        'method'=>'get',
        'action'=>'EmailController@email'
    ],
    'send_email'=>[
        'method'=>'post',
        'action'=>'EmailController@send_email'
    ],
    'email_detail'=>[
        'method'=>'get',
        'action'=>'EmailController@email_detail'
    ],
    'change_status'=>[
      'method'=>'get',
      'action'=>'EmailController@change_status'
    ],
    'delete_email'=>[
        'method'=>'get',
        'action'=>'EmailController@delete_email'
    ]

];